package com.hanfengyi.page.web.controller;

import com.hanfengyi.hrm.AjaxResult;
import com.hanfengyi.page.service.impl.PagerServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * User: Han
 * Date: 2020/2/27
 * Time: 12:44
 * Description:
 */
@RestController
@RequestMapping("/static")
public class pageStaticAction {
    @Autowired
    private PagerServiceImpl pagerService;
    @PostMapping("/page")
    public AjaxResult pageStaticAction(@RequestParam("key")String key,@RequestParam("templateName")String templateName){
        pagerService.pageStaticAction(key,templateName);
        return AjaxResult.me();
    }
}